﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Skills.ascx.cs" Inherits="Job.Web.userControls.Personal.Skills" %>
<%@ Register Assembly="Job.Web" Namespace="Job.Web.RelatedDrowDownList" TagPrefix="cc1" %>

<script type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({ formid: "aspnetForm", onerror: function(msg) { alert('校验没有通过，具体错误请看错误提示') } });
        $("#ctl00_maincontent_ctl00_ddlName2").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min:1,onerror: "<img alt='请选择技能名称' src='/Images/no_com.gif' width=15 height=15 />" })
        $("#ctl00_maincontent_ctl00_txtUseLen").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min: 1, max: 1000, type: "value", onerror: "<img alt='请输入使用时间（整数）' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
        $("#ctl00_maincontent_ctl00_ddlLevel").formValidator({ onshow: " ", onfocus: " ", oncorrect: " " }).inputValidator({ min:1,onerror: "<img alt='请选择熟练程度' src='/Images/no_com.gif' width=15 height=15 />" }); //.defaultPassed();
    }
);
</script>

<table border="1px" bordercolor="#d8e1e7" style="border-style: solid; border-collapse: collapse"
    width="750" class="ResumeBaseTable" align="left">
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lbledu" runat="server" Text="技能水平"></asp:Label>
        </td>
    </tr>
    <tr align="left">
        <td class="ResumeLabelTD" colspan="2" id="message" runat="server">
            &nbsp
        </td>
    </tr>
    <tr>
        <td colspan="2" height="50px">
            <asp:GridView ID="gvSkill" runat="server" CssClass="table_style1" Width="100%" AutoGenerateColumns="False"
                OnRowCommand="gvSkill_RowCommand" OnRowDataBound="gvSkill_RowDataBound" OnRowDeleting="gvSkill_RowDeleting">
                <HeaderStyle CssClass="table_style1_th" />
                <Columns>
                    <asp:TemplateField HeaderText="技能名称" >
                        <ItemTemplate>
                            <asp:Label ID="lblSKillName" runat="server"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="掌握程度" ItemStyle-Width="15%">
                        <ItemTemplate>
                            <asp:Label ID="lblLevelName" runat="server"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblLevel" runat="server" Text='<%# Bind("SkillLevel") %>'></asp:Label>
                            <asp:Label ID="lblName" runat="server" Text='<%# Bind("SkillName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                    <asp:TemplateField InsertVisible="False" ShowHeader="False" ItemStyle-Width="10%">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="编辑" CommandArgument='<%# Eval("PersonSkillId") %>'></asp:LinkButton>
                            &nbsp;&nbsp;
                            <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除" CommandArgument='<%# Eval("PersonSkillId") %>' OnClientClick="return confirm('确认要删除这条培训吗?')"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="table_style1_td" />
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#EAECEC" />
                <AlternatingRowStyle BackColor="#F6F6F6" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="style2">
        </td>
    </tr>
    <tr>
        <td colspan="2" class="title_1">
            <asp:Label ID="lblMode" runat="server" Text=""></asp:Label>( <font color="#ec0000">*</font>
            为必填项)
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelTD">
            &nbsp; 技能<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <span id="ctl00_maincontent_ctl00_tbBeginDateTip">
                <asp:DropDownList ID="ddlName1" runat="server" Width="250px">
                </asp:DropDownList>
            </span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
        </td>
        <td class="ResumeTD">
            <asp:DropDownList ID="ddlName2" runat="server" Width="250px">
            </asp:DropDownList>
            <span id="ctl00_maincontent_ctl00_ddlName2Tip"></span>
            <cc1:RelatedList ID="RelatedListName" runat="server">
            </cc1:RelatedList>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 使用时间<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:TextBox ID="txtUseLen" runat="server" CssClass="TextBox" Width="100px"></asp:TextBox>月
            <span id="ctl00_maincontent_ctl00_txtUseLenTip"></span>
        </td>
    </tr>
    <tr>
        <td class="ResumeLabelEDUTD">
            &nbsp; 掌握程度<span><font color="red">*</font> </span>
        </td>
        <td class="ResumeTD">
            <asp:DropDownList ID="ddlLevel" runat="server" Width="250px">
            </asp:DropDownList>
            <span id="ctl00_maincontent_ctl00_ddlLevelTip"></span>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnSave" runat="server" Text="保存技能" CssClass="btn_2k3" OnClick="btnSave_Click" />
        </td>
    </tr>
</table>
